﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using System.Threading;
using Json.test;
using System.Security.Cryptography;

namespace Json
{

    public class AAAttribute : Attribute
    {

    }
    public class BBAttribute : Attribute
    {
    }
    [BB]
    class Program
    {
        static void Main(string[] args)
        {
            Uri uri = new Uri("http://consignment.5173.com/auction/publish/publishing.aspx?basictype=equipment&gm=44343b06076d4a7a95a0ef22aac481ae&bt=2f4c229f6b074c9cae4ffdf9adcd7af6&cate=7242e3942523474d97be90324a427471&subcate=cf642403d5fb41da8ea6284010330998&ga=f24ae3dcc776413cafa79bc54337d74b&gs=0141cb0bd42a49b1b2325dda6fe87e48&raceid=&ts=consignment");


            var type = typeof(Program);
            var attrs = type.GetCustomAttributes(typeof(AAAttribute), true);
            attrs = type.GetCustomAttributes(typeof(BBAttribute), false);

            short s1 = 332;
            s1 += 88;

            //Uri url = new Uri("https://vjsadmin.5173.com/Main.aspx");


            //var str = "abcdef谋略某";
            //var len = Encoding.UTF8.GetBytes(str).Length;//3
            //Console.WriteLine(len);
            //len = Encoding.Unicode.GetBytes(str).Length;//4
            //Console.WriteLine(len);
            //len = Encoding.GetEncoding("gb2312").GetBytes(str).Length;//2
            //Console.WriteLine(len);

            //ITest run = new throwExceptionTest();

            //run.Run();//

            //MD5 md5 = MD5.Create();
            //var b = Encoding.Default.GetBytes("12345");
            //b = md5.ComputeHash(b, 0, b.Length);
            //var xx = Encoding.Default.GetString(b);
            //StringBuilder sb = new StringBuilder(32);
            //foreach (var item in b)
            //{
            //    sb.Append(item.ToString("x2"));
            //}
            //xx = sb.ToString();
            //Console.Read();
        }
    }
}
